//
//  Router_List.swift
//  CodingTest
//
//  Created by LYPC on 2021/11/19.
//

import UIKit

enum Router_List {
    /// 列表详情页
    case detail(DetailRouterParam)
    case webShow(WebDetailParam)
}

extension Router_List: RouterPathable {
    var any: AnyClass {
        switch self {
        case .detail:
            return DetailViewController.self
        case .webShow:
            return WebDetailViewController.self
        }
    }
    
    var params: RouterParam? {
        switch self {
        case .detail((let param)):
            return param
        case .webShow((let param)):
            return param
        }
    }
}
